package com.app.service.impl.superarket;

import com.app.mapper.supermarket.CommentMapper;
import com.app.mapper.supermarket.MktCertMapper;
import com.app.model.supermarket.CommentModel;
import com.app.model.supermarket.MktCertModel;
import com.app.service.supermarket.CommentService;
import com.app.service.supermarket.MktCertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:零活
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
@Primary
public class MktCertServiceImpl implements MktCertService {
    @Autowired
    MktCertMapper mktCertMapper;


    @Override
    public int insert(MktCertModel model) {
        return mktCertMapper.insert(model);
    }

    @Override
    public void delete(int mid) {
        mktCertMapper.delete(mid);
    }

    @Override
    public int getCountByMid(int mid) {
        return mktCertMapper.getCountByMid(mid);
    }

    @Override
    public List<MktCertModel> getListByMid(int mid) {
        return mktCertMapper.getListByMid(mid);
    }
}
